<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class HouseClass extends BaseModel
{
    use HasFactory;

    public $table = 'house_class';

    public $guarded = [];

    public $casts = [
        'created_at' => 'date:Y-m-d H:i:s'
    ];

    public function house()
    {
        return $this->hasMany(House::class, 'house_class_id', 'id');
    }
}
